package com.yuxin.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.yuxin.vo.WeatherResponse;

@FeignClient(value = "SERVICE-DATA")
public interface WeatherService {

    @RequestMapping(value = "/weather/cityId/{cityId}", method = RequestMethod.GET)
    WeatherResponse weather(@PathVariable("cityId") String cityId);


}